home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / comm / prtcs155.zip / START-AR < prev    next >
Text File  |  1994-01-14  |  2KB  |  64 lines

  1. ; ========================     Start-ARexx     ==========================
  2. ; Loads the libraries required by ARexx and starts the ARexx server.
  3. ; This could be placed in your startup-sequence to activate ARexx.
  4.  
  5.  Assign RexxC: D0H1:RexxC
  6.  
  7. ; N.B. The double-precision math library mathieeedoubbas.library must
  8. ; be in the LIBS: directory.  If this is not convenient, copy it into
  9. ; this disk's :libs directory and uncomment the following line ...
  10.  
  11.  RexxC:loadlib Libs:mathieeedoubbas.library
  12.  
  13.  RexxC:loadlib Libs:rexxsyslib.library
  14.  if error
  15.      echo "Couldn't load rexxsyslib.library"
  16.      quit 20
  17.  endif
  18.  RexxC:loadlib Libs:rexxsupport.library
  19.  if error
  20.      echo "Couldn't load rexxsupport.library"
  21.      quit 20
  22.  endif
  23.  Set REXXDOS TRUE
  24.  RexxC:loadlib Libs:RexxDosSupport.library
  25.  if error
  26.      echo "Couldn't load RexxDosSupport.library"
  27.      Set RexxDos FALSE
  28.  endif
  29.  Set HGREXX TRUE
  30.  RexxC:loadlib Libs:hGRexxSupport.library
  31.  if error
  32.      echo "Couldn't load hGRexxSupport.library"
  33.      Set HGREXX FALSE
  34.  endif
  35.  
  36. ; Start the ARexx server if it's not already active
  37.   RexxC:waitforport -i REXX
  38.   if warn
  39.      RexxC:rexxmast >nil:
  40.      RexxC:waitforport REXX
  41.      endif
  42.  
  43. ; Make the support library available
  44.   RexxC:rxlib rexxsupport.library 0 -30 0
  45.  
  46.  if ${REXXDOS} EQ TRUE
  47. ; Make the WB2 DOS support library available
  48.   RexxC:rxlib RexxDosSupport.library 0 -30 0
  49.  ENDIF
  50.  
  51.  if ${HGREXX} EQ TRUE
  52. ; Make the WB2 DOS support library available
  53.   RexxC:rxlib hGRexxSupport.library 0 -30 0
  54.  ENDIF
  55.  
  56. ; Assign the REXX: directory if appropriate
  57.   Assign REXX: OS2:rexx
  58.  
  59. ; Start up RexxPlus server
  60.  IF EXISTS REXXP:RPstart
  61.   Run RexxP:RPstart
  62.   RexxC:waitforport -i RPREXX
  63.  ENDIF
  64.